import {fetch} from './fetch';

// appkey:appkey, code, data 
//  'ucenter/openapi/openlogin/weixinMp2.xhtml
// appkey:appkey, code, data  
//  'ucenter/member/bindMobileByWx.xhtml

// 第一个绑定用户信息 ，第二个是手机号。   appkey 可以写死，code, data 都是微信拿到的
export const bindUser = (data) => fetch('ucenter/openapi/openlogin/weixinMp2.xhtml',data,)
// 绑定手机号
export const bindMobild = (data) => fetch('ucenter/member/bindMobileByWx.xhtml',data,)
// 获取预约须知
export const getTips = (data) => fetch('vendor/reserveprogram/getReserveProgramExtra.xhtml',data,)
// 展示预约信息 
export const getReserveInfo = (data) => fetch('vendor/reserveprogram/prepareReserve.xhtml',data,)
// 确认预约
// export const sureReserve = (data) => fetch('vendor/member/reserveorder/savereserve.xhtml',data,)
export const sureReserve = (data) => fetch('vendor/member/reserveorder/savereserveByCurrent.xhtml',data,)
// 确认预约 更改 vendor/member/reserveorder/savereserveByCurrent.xhtml

// 获取预约列表
export const getReserveList = (data) => fetch('vendor/member/reserveorder/list.xhtml',data,)
// 获取详情
export const getReserveDetail = (data) => fetch('/vendor/member/reserveorder/getdetail.xhtml',data,)